#include <STC15F2K60S2.H>

long a;

void main()
{
	P2 = 0xA0;	P0 = 0x00;	P2 = 0x80;	P0 = 0xFF;//初始化，防止蜂鸣器乱叫
	
	while(1)
	{
		P00 = 0; P01 = 1; P02 = 1; P03 = 1;
		for (a = 80000; a > 0; a --);
		P00 = 1; P01 = 0; P02 = 1; P03 = 1;
		for (a = 80000; a > 0; a --);
		P00 = 1; P01 = 1; P02 = 0; P03 = 1;
		for (a = 80000; a > 0; a --);
		P00 = 1; P01 = 1; P02 = 1; P03 = 0;
		for (a = 80000; a > 0; a --);
		
	}
}


